<div class="fui-page fui-current-page">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback()"></a>
        </div>
        <div class="title">全部版块</div>
        <a class="fui-header-right external" ng-click="access_json('/index/')" ><i class="icon icon-shouye"></i></a>
    </div>
    <div class="fui-content navbar">
        <div class="fui-fullHigh-group" >
            <div class="fui-fullHigh-item menu" id="tab">
                <nav ng-click="pagedata.getlist(0);" ng-class="{'on':pagedata.params.type==0}">全部版块</nav>
                <nav ng-click="pagedata.getlist(1);" ng-class="{'on':pagedata.params.type==1}" data-cid="rec">推荐版块</nav>      
                <nav ng-repeat="c in pagedata.category" ng-class="{'on':pagedata.params.cid==c.id}">
					<a ng-if="c.url" ng-click="access_json(c.url);" style="padding: 0.5rem;">{{c.name}}</a>
					<a ng-if="!c.url" ng-click="pagedata.params.cid=c.id;pagedata.getlist(3)" style="padding: 0.5rem;">{{c.name}}</a>
				</nav>
            </div>
            <div class="fui-fullHigh-item">
                <p class='text-center text-cancel empty' ng-if="">暂时没有任何版块</p>
                <div class='fui-list-group' id="board-list-group">				
					<a ng-repeat="s in pagedata.list" class='fui-list board-lists-item external'
						 data-id='{{s.id}}'
						 data-title='{{s.title}}'
						ng-click="access_json('/board.index//page=1&id='+s.id)" data-nocache="true">
						<div class='fui-list-media'>
							<img ng-src='{{tomedia(s.logo)}}' class='round' />
						</div>
						<div class='fui-list-inner'>
							<div class='subtitle'>{{s.title}}</div>
							<div class='text'>话题数: <span class='text-danger'>{{s.postcount}}</span> 关注数:<span class="text-danger">{{s.followcount}}</span></div>
						</div>
						<div class="fui-list-angle">
							<div class='angle'></div>
						</div>
					</a>
				</div>
            </div>
        </div>
		
    </div>

</div>
<div ng-include="sys_html('_menu')"></div>
<script language='javascript'>
scope.tool.get_list('jy_sns/board.lists/getlist/',true);
scope.pagedata.getlist=function(type){
	scope.pagedata.params.type=type;
	if(type==1){
		scope.pagedata.params.cid=0;
		scope.pagedata.params.isrecommand=1;
	}
	if(type==0){
		scope.pagedata.params.cid=0;
		scope.pagedata.params.isrecommand='';
	}
	if(type==3){
		scope.pagedata.params.isrecommand='';
	}
	scope.tool.get_list('jy_sns/board.lists/getlist/',true);
}	
</script>